package sunyu.service.impl;

import org.springframework.stereotype.Service;
import sunyu.mapper.TMenuMapper;
import sunyu.pojo.TMenu;
import sunyu.service.MenuService;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author 孙宇
 */
@Service("menuService")
public class MenuServiceImpl implements MenuService {

    @Resource
    TMenuMapper tMenuMapper;

    @Override
    public List<TMenu> select() {
        return tMenuMapper.select();
    }

    @Override
    public int deleteByPrimaryKey(String id) {
        return tMenuMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(TMenu record) {
        return tMenuMapper.insert(record);
    }

    @Override
    public int insertSelective(TMenu record) {
        return tMenuMapper.insertSelective(record);
    }

    @Override
    public TMenu selectByPrimaryKey(String id) {
        return tMenuMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(TMenu record) {
        return tMenuMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(TMenu record) {
        return tMenuMapper.updateByPrimaryKey(record);
    }
}
